package Entidad;

import java.io.Serializable;
import javax.persistence.*;

@Entity
@Table(name = "Personas")
@Inheritance
@DiscriminatorColumn(name="PERSON_TIPE")

public class Person implements Serializable {
    
    @Id
    @Column(name="NAME",length=250,nullable=false)
    private String Name;
    @Column(name="LASTNAME",length=250,nullable=true)
    private String LastName = "Desconocido";
    @Column(name="PICTURE",length=250,nullable=true)
    private String Picture = "Desconocido";
    @Column(name="BIRTHDATE",length=250,nullable=true)
    private String birthdate = null;
    @Column(name="BIRTHPLACE",length=250,nullable=true)
    private String birthplace = "Desconocido";
         
    public String getLastName() {
        return LastName;
    }

    public void setLastName(String LastName) {
        this.LastName = LastName;
    }

    public String getName() {
        return Name;
    }

    public void setName(String Name) {
        this.Name = Name;
    }

    public String getPicture() {
        return Picture;
    }

    public void setPicture(String Picture) {
        this.Picture = Picture;
    }

    public String getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(String birthdate) {
        this.birthdate = birthdate;
    }

    public String getBirthplace() {
        return birthplace;
    }

    public void setBirthplace(String birthplace) {
        this.birthplace = birthplace;
    }
}